<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">--%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>main</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <link href="css/main.css" rel="stylesheet">
    <style>
        img {
            width: 45px;
            height: 45px;
        }
    </style>
    <script type="text/javascript" src="bootstrap/js/jquery-3.2.1.js"></script>
    <script type="text/javascript" src="bootstrap/js/bootstrap.js"></script>
</head>
<body>
<!--顶部导航栏部分-->
<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <div class="navbar-header" style="margin-left: 83px; margin-top: 3px">
            <img src="image/logo.jpg" alt="">
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li role="presentation">
                  	<span class="badge">
                       	<c:if test="${not empty user}">
                            <c:out value="${user.account}"></c:out>
                            <c:if test="${not empty user.photoFile}">
                                <img src="${pageContext.request.contextPath}/photo/${user.photoFile}">
                            </c:if>
                        </c:if>
                        <c:if test="${empty user}">
                            游客
                        </c:if>
                   </span>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/userServlet?flag=exit">
                        <span class="glyphicon glyphicon-lock"></span>注销</a>
                </li>
            </ul>
        </div>
    </div>
</nav>

<!-- 中间主体内容部分 -->
<div class="pageContainer">
    <!-- 左侧导航栏 -->
    <div class="pageSidebar" style="background-color: #5bc0de">
        <!--堆叠的或垂直的基于标签的导航 -->
        <ul class="nav nav-stacked nav-pills">
            <li role="presentation">
                <a href="prd_srch.jsp" target="mainFrame">资产查询</a>
            </li>
            <li role="presentation">
                <a href="person_apply.jsp" target="mainFrame">个人申请一览</a>
            </li>
            <c:if test="${user.account=='admin'}">
                <li role="presentation">
                    <a href="aro_list.jsp" target="mainFrame">待审批一览</a>
                </li>
                <li role="presentation">
                    <a href="depreciation.jsp" target="mainFrame">资产报废</a>
                </li>
                <li role="presentation">
                    <a href="prd_worthless.jsp" target="mainFrame">不可用资产一览</a>
                </li>
                <li role="presentation">
                    <a href="prd_type_rate.html" target="mainFrame">各种资产的占比</a>
                </li>
            </c:if>
        </ul>
    </div>

    <!-- 左侧导航和正文内容的分隔线 -->
    <div class="splitter"></div>
    <!-- 正文内容部分 -->
    <div class="pageContent">
        <iframe src="prd_srch.jsp" id="mainFrame" name="mainFrame"
                frameborder="0" width="100%" height="100%" frameBorder="0">
        </iframe>
    </div>

</div>
</body>
</html>